import Vue from 'vue';
import Router from 'vue-router';


import Home from '@/view/Home.vue';
import About from '@/view/About.vue';

Vue.use(Router);  // 注册 Vue Router 插件

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
  },
  {
    path: '/about',
    name: 'About',
    component: About,
  },
];

const router = new Router({
  routes,
});

export default router;